package edu.sctu.practice.class02.yangshengyu.text01.test07;

/**
 * Created by Cullen on 2015/10/12.
 */
public class classWuMingFen {

    protected String theMa;
    protected int quantity;
    protected boolean likeSoup;

    public classWuMingFen(String theMa,int quantity,boolean likeSoup){
        this.theMa=theMa;
        this.quantity=quantity;
        this.likeSoup=likeSoup;
    }

    public classWuMingFen(String theMa,int quantity){
        this.theMa=theMa;
        this.quantity=quantity;
    }

    public void check(){
        System.out.println("面码是："+this.theMa+"粉     分量有："+this.quantity+"两！");
        if(this.likeSoup==true){
            System.out.println("有汤的哟！");
        }else {
            System.out.println("没有汤的哟！");
        }
    }

    public static void main(String[] args) {
        classWuMingFen wuMingFenf3=new classWuMingFen("酸辣",2,true);
        wuMingFenf3.check();
    }
}
